﻿<div class="modal-header">
    <h3 class="modal-title">查看角色</h3>
</div>
<div class="modal-body">
    <table class="table table-hover table-bordered" m-check>
        <thead>
            <tr>
                <th class="col-sm-2">角色</th>
                <th>权限集</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in roles">
                <td>{{item.Name}}</td>
                <td>{{item.Powers|merge:'Name':4:'...'|none:'没有关联权限'}}</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="4">
                    <div class="pull-right">
                        <uib-pagination boundary-links="true" total-items="total" ng-model="current" max-size="10" ng-change="search(true)" items-per-page="size"
                                        class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-click="ok()">确定</button>
</div>